﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Manage/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QianBuo.Lottery.Web.Areas.Manage.Models.Issue.AddModel>" %>
<%@ Import Namespace="Code.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	添加期号
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div>
    <fieldset>
        <legend>添加期号</legend>
        <% Html.BeginForm(); %>
        <table width="100%">
            <tr>
                <td>
                    <%=Html.LabelFor(p=>p.LotteryID) %>
                    <%=Html.DropDownListFor(p=>p.LotteryID,Model.Lotterys.Select(p=>new SelectListItem{ Text=p.Value,Value=(p.Key).ToString(),Selected=p.Key==Model.LotteryID})) %>
                    <%=Html.ValidationMessageFor(p=>p.LotteryID) %>
                </td>
                <td>
                    <%=Html.LabelFor(p=>p.StartTime) %>
                    <input type="text" id="StartTime" name="StartTime" onclick="WdatePicker()" value='<%=Model.StartTime.ToShortDateString() %>' />
                    
                    <%=Html.ValidationMessageFor(p=>p.StartTime) %>
                </td>
                <td>
                    <%=Html.LabelFor(p=>p.Date) %>
                    <%=Html.TextBoxFor(p=>p.Date) %>
                    <%=Html.ValidationMessageFor(p=>p.Date) %>
                </td>
                <td>
                    <input type="submit" value="添加" />
                </td>
            </tr>
        </table>
        <%=Html.HiddenFor(p=>p.LotteryID) %>
        <%=Html.SerializableFor(p=>p.Lotterys) %>
        <%Html.EndForm(); %>
    </fieldset>
</div>
</asp:Content>
